﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html>
<head><link rel="stylesheet" href="${ctx}/common/common.css">
  <meta charset="utf-8">
  <title>登入 - layuiAdmin</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link href="${ctx}/common/login/css/login.css" rel="stylesheet"  type="text/css">
  <script type="text/javascript" src="${ctx}/common/publicPlatform/js/jquery-1.11.1.min.js"></script>
  <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/layui/css/layui.css" media="all">
  <link href="${ctx}/common/login/css/admin.css" rel="stylesheet"  type="text/css">
  <link href="${ctx}/common/login/css/login.css" rel="stylesheet"  type="text/css">
</head>
<style>
	.layadmin-user-login{
		background: url(${ctx}/common/imgs/dl.jpg) no-repeat;
		width: 100%;
		height: 100%;
		background-size: 100% 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	
	}
	
	.layui-add-login{
		background: url('${ctx}/common/imgs/dlk-hrb.png') no-repeat;
		background-size: 100% 100%;
		position: absolute;
		top: 20%;
		left: 22%;

		
	}

    .layui-add-login{
    	width:55%;
    height: 66%;
    overflow: hidden;
    }

.layadmin-user-login-main{
	width: 40%;
	height: 41%;
	margin: 15% auto 0 auto;
}

</style>
<body>

  <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="position: relative;">
	<div class="layui-add-login">
    <div class="layadmin-user-login-main">
     
      <form id="loginForm"  method="post" action="${ctx}/login">
      <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
      <div class="err" >
		<!--校验信息弹出框-->
		<p style="color: red;font-size: 14px;position: relative;top: -10px;">${LOGIN_ERROR_MESSAGE}</p>
	  </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
          <input type="text" name="login_name" id="LAY-user-login-username" lay-verify="required" placeholder="请输入帐号" class=" layui-input" >
        </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input type="password" name="password" id="LAY-user-login-password" lay-verify="required" placeholder="请输入密码" class="layui-input">
        </div>
        <!-- <div class="layui-form-item">
          <div class="layui-row">
            <div class="layui-col-xs5">
              <input type="text" name="vercode" id="LAY-user-login-vercode" lay-verify="required" placeholder="验证码" class="layui-input layui-add-vercode">
            </div>
            <div class="layui-col-xs4">
              <div style="margin-left: 10px;">
                <img src="https://www.oschina.net/action/user/captcha" class="layadmin-user-login-codeimg" id="LAY-user-get-vercode">
              </div>
            </div>
            <div class="layui-col-xs3 layui-a">
            	<a href="">换一换</a>
            </div>
          </div>
        </div> -->
        
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">登 录</button>
        </div>
     		<div class="layui-form-item" style="margin-bottom: 20px;">
          <input type="checkbox" name="remember" lay-skin="primary" title="记住密码">
          
        </div>
      </div>
      </form>
    </div>
	</div>
  </div>

  <script>
  var msg='${LOGIN_ERROR_MESSAGE}';
  if( msg!='' ){
  	$(".err").find("p").css("display","block");
  }
  function login(){
  	document.getElementById('loginForm').submit();
  }
  </script>
</body>
</html>

